import request from '@/utils/request'

const BASE = "/base/config"
// 分页查询
export function getConfigWithdrawSettingApi(params) {
    return request({
        url: `${BASE}/withdrawSetting`,
        method: "get",
        params
    })
}


// 分页查询
export function getConfigWlistOpportunitiesApi(params) {
    return request({
        url: `${BASE}/listOpportunities`,
        method: "get",
        params
    })
}

// 商机设置修改
export function getConfigEditApi(data) {
    return request({
        url: `${BASE}/edit`,
        method: "put",
        data
    })
}

// 商机设置删除
export function getConfigRemoveApi(id) {
    return request({
        url: `${BASE}/remove/${id}`,
        method: "delete",

    })
}

// 商机设置删除
export function getAddOpportunitiesApi(data) {
    return request({
        url: `${BASE}/addOpportunities`,
        method: "post",
        data
    })
}   